package shengchanxiaofeizhe;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class WareHouse {
    public static boolean mark = false;
    public static ReentrantLock lock = new ReentrantLock();
    public  static Condition producer = lock.newCondition(); // lock创建线程, 下面才能使用await等待
    public  static Condition consumer = lock.newCondition();

}
